package cn.iocoder.yudao.module.pay.controller.app.point.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "用户 APP - 会员钻石充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppPayPointRechargeRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24272")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20982")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户实际到账余额，例如充 100 送 20，则该值是 120", requiredMode = Schema.RequiredMode.REQUIRED, example = "29424")
    @ExcelProperty("用户实际到账余额，例如充 100 送 20，则该值是 120")
    private Integer totalPrice;

    @Schema(description = "实际支付金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "4158")
    @ExcelProperty("实际支付金额")
    private Integer payPrice;

    @Schema(description = "钱包赠送金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "15808")
    @ExcelProperty("钱包赠送金额")
    private Integer bonusPrice;

    @Schema(description = "充值套餐编号", example = "5834")
    @ExcelProperty("充值套餐编号")
    private Long packageId;

    @Schema(description = "是否已支付：[0:未支付 1:已经支付过]", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("是否已支付：[0:未支付 1:已经支付过]")
    private Boolean payStatus;

    @Schema(description = "支付订单编号", example = "15289")
    @ExcelProperty("支付订单编号")
    private Long payOrderId;

    @Schema(description = "支付成功的支付渠道")
    @ExcelProperty("支付成功的支付渠道")
    private String payChannelCode;

    @Schema(description = "订单支付时间")
    @ExcelProperty("订单支付时间")
    private LocalDateTime payTime;

    @Schema(description = "支付退款单编号", example = "19108")
    @ExcelProperty("支付退款单编号")
    private Long payRefundId;

    @Schema(description = "退款金额，包含赠送金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "20158")
    @ExcelProperty("退款金额，包含赠送金额")
    private Integer refundTotalPrice;

    @Schema(description = "退款支付金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "13940")
    @ExcelProperty("退款支付金额")
    private Integer refundPayPrice;

    @Schema(description = "退款钱包赠送金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "28768")
    @ExcelProperty("退款钱包赠送金额")
    private Integer refundBonusPrice;

    @Schema(description = "退款时间")
    @ExcelProperty("退款时间")
    private LocalDateTime refundTime;

    @Schema(description = "退款状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("退款状态")
    private Integer refundStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "支付渠道名", example = "微信小程序支付")
    private String payChannelName;

    @Schema(description = "支付成功的外部订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String payOrderChannelOrderNo; // 从 PayOrderDO 的 channelOrderNo 字段

}